package com.duoduo.service;

import com.duoduo.entity.UserAddress;

import java.util.ArrayList;
import java.util.List;

/**
 * TODO
 *
 * @author qian
 * @version 1.0
 * @date 2021/4/16 14:38
 */
public class UserServiceImpl implements UserService {

    @Override
    public List<UserAddress> queryAllAddress() {
        ArrayList<UserAddress> addresses = new ArrayList<>();
        UserAddress userAddress1 = new UserAddress(1, "地址1", "1");
        UserAddress userAddress2 = new UserAddress(2, "地址2", "1");
        UserAddress userAddress3 = new UserAddress(3, "地址3", "1");
        addresses.add(userAddress1);
        addresses.add(userAddress2);
        addresses.add(userAddress3);
        return addresses;
    }
}
